import request from '@/core/request/index'

// 登录接口
export const login = (data) => {
  return request({
    url: '/api/login',
    method: 'POST',
    data
  })
}

// 注册接口
export const register = (data) => {
  return request({
    url: '/api/register',
    method: 'POST',
    data
  })
}

// 忘记密码，重置密码
export const resetPassword = (data) => {
  return request({
    url: '/user/updatePasswordWithVerification',
    method: 'POST',
    data
  })
}
